package com.wurd.test.wx.token;

import org.springframework.stereotype.Component;

import java.util.concurrent.ConcurrentHashMap;

@Component
public class Cache {
    protected Token verifyTicket = null;
    protected Token componentAccessToken = null;
    protected Token preAuthCode = null;
    protected ConcurrentHashMap<String, AuthToken> appAuthRefreshToken = new ConcurrentHashMap();

    protected Token gzhAccessToken = null;

    public Token getVerifyTicket() {
        return verifyTicket;
    }

    public void setVerifyTicket(Token verifyTicket) {
        this.verifyTicket = verifyTicket;
    }

    public Token getComponentAccessToken() {
        return componentAccessToken;
    }

    public void setComponentAccessToken(Token componentAccessToken) {
        this.componentAccessToken = componentAccessToken;
    }

    public Token getPreAuthCode() {
        return preAuthCode;
    }

    public void setPreAuthCode(Token preAuthCode) {
        this.preAuthCode = preAuthCode;
    }

    public ConcurrentHashMap<String, AuthToken> getAppAuthRefreshToken() {
        return appAuthRefreshToken;
    }

    public Token getGzhAccessToken() {
        return gzhAccessToken;
    }

    public void setGzhAccessToken(Token gzhAccessToken) {
        this.gzhAccessToken = gzhAccessToken;
    }
}
